package cn.sc.allinpay.allfavour.business.common.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description：支付订单
 * author：pany
 * on 2018/8/9 14:46
 */
public class OrderData implements Parcelable {
    private String orderId;//支付订单号
    private String spOrderId;//支付订单号
    private String spOrderCode;//商点订单号
    private String cashierNo;//收银员号码
    private String cashierName;//收银员姓名
    private String guideId;//导购ID;
    private String guideName;//导购名称
    private String oilType;//油品
    private String oilName;//油品名称
    private String retTime;

    public String getPrintCount() {
        return printCount;
    }

    public void setPrintCount(String printCount) {
        this.printCount = printCount;
    }

    private String printCount;//打印次数

    private String transAmt;//(元为单位)交易总金额
    private String paidAmt;//(元为单位)待支付金额(需要通过POS应用支付的金额)
    private String disCouponAmt;//卡券使用金额
    private String disEWalletAmt;//电子钱包使用金额

    private MemberData memberData;//会员信息

    public OrderData() {

    }

    protected OrderData(Parcel in) {
        orderId = in.readString();
        spOrderId = in.readString();
        spOrderCode = in.readString();
        cashierNo = in.readString();
        cashierName = in.readString();
        guideId = in.readString();
        guideName = in.readString();
        oilType = in.readString();
        oilName = in.readString();
        retTime = in.readString();
        transAmt = in.readString();
        paidAmt = in.readString();
        disCouponAmt = in.readString();
        disEWalletAmt = in.readString();
        memberData = in.readParcelable(MemberData.class.getClassLoader());
        printCount = in.readString();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getCashierNo() {
        return cashierNo;
    }

    public void setCashierNo(String cashierNo) {
        this.cashierNo = cashierNo;
    }

    public String getCashierName() {
        return cashierName;
    }

    public void setCashierName(String cashierName) {
        this.cashierName = cashierName;
    }

    public String getGuideId() {
        return guideId;
    }

    public void setGuideId(String guideId) {
        this.guideId = guideId;
    }

    public String getGuideName() {
        return guideName;
    }
    public String getOilType() {
        return oilType;
    }
    public String getOilName() {
        return oilName;
    }

    public void setGuideName(String guideName) {
        this.guideName = guideName;
    }
    public void setOilType(String oilType) {
        this.oilType = oilType;
    }

    public void setOilName(String oilName) {
        this.oilName = oilName;
    }

    public String getSpOrderId() {
        return spOrderId;
    }

    public void setSpOrderId(String spOrderId) {
        this.spOrderId = spOrderId;
    }

    public String getTransAmt() {
        return transAmt;
    }

    public void setTransAmt(String transAmt) {
        this.transAmt = transAmt;
    }

    public String getPaidAmt() {
        return paidAmt;
    }

    public void setPaidAmt(String paidAmt) {
        this.paidAmt = paidAmt;
    }

    public String getDisCouponAmt() {
        return disCouponAmt;
    }

    public void setDisCouponAmt(String disCouponAmt) {
        this.disCouponAmt = disCouponAmt;
    }

    public String getDisEWalletAmt() {
        return disEWalletAmt;
    }

    public void setDisEWalletAmt(String disEWalletAmt) {
        this.disEWalletAmt = disEWalletAmt;
    }

    public MemberData getMemberData() {
        return memberData;
    }

    public void setMemberData(MemberData memberData) {
        this.memberData = memberData;
    }

    public static final Creator<OrderData> CREATOR = new Creator<OrderData>() {
        @Override
        public OrderData createFromParcel(Parcel in) {
            return new OrderData(in);
        }

        @Override
        public OrderData[] newArray(int size) {
            return new OrderData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(orderId);
        parcel.writeString(spOrderId);
        parcel.writeString(spOrderCode);
        parcel.writeString(cashierNo);
        parcel.writeString(cashierName);
        parcel.writeString(guideId);
        parcel.writeString(guideName);
        parcel.writeString(oilType);
        parcel.writeString(oilName);
        parcel.writeString(retTime);
        parcel.writeString(transAmt);
        parcel.writeString(paidAmt);
        parcel.writeString(disCouponAmt);
        parcel.writeString(disEWalletAmt);
        parcel.writeParcelable(memberData, i);
        parcel.writeString(printCount);
    }

    public String getSpOrderCode() {
        return spOrderCode;
    }

    public void setSpOrderCode(String spOrderCode) {
        this.spOrderCode = spOrderCode;
    }

    public String getRetTime() {
        return retTime;
    }

    public void setRetTime(String retTime) {
        this.retTime = retTime;
    }
}
